class NetCallback<T> {
  // void onFinish();
  // void onSuccess(T t);
  // void onFail(String code,String msg);

  final Function? onFinish;
  final Function(T)? onSuccess;
  final Function(String, String)? onFail;

  NetCallback({this.onFinish, this.onSuccess, this.onFail});
}

// abstract class SimpleNetCallback<T> extends NetCallback<T>{
//   @override
//   void onFinish(){}
//   @override
//   void onFail(String code,String msg){}
// }
